﻿CREATE TABLE [dbo].[ProjectInterfaceSet] (
    [Id]           INT             IDENTITY (1, 1) NOT FOR REPLICATION NOT NULL,
    [CId]          INT             NULL,
    [CateOneId]    INT             NULL,
    [CateTwoId]    INT             NULL,
    [ProductId]    INT             NULL,
    [Title]        NVARCHAR (50)   NULL,
    [CostPrice]    NUMERIC (18, 2) NULL,
    [SalePrice]    NUMERIC (18, 2) NULL,
    [Description]  NVARCHAR (1000) NULL,
    [Sort]         INT             NULL,
    [CompanyId]    INT             NULL,
    [DepartmentId] INT             NULL,
    [UserName]     NVARCHAR (50)   NULL,
    [ExCompanyId]  INT             NULL,
    CONSTRAINT [PK_ProjectInterfaceSet] PRIMARY KEY CLUSTERED ([Id] ASC)
);


GO
CREATE NONCLUSTERED INDEX [IX_ProjectInterfaceSet_ProductId]
    ON [dbo].[ProjectInterfaceSet]([ProductId] ASC);


GO
CREATE NONCLUSTERED INDEX [IX_ProjectInterfaceSet_CompanyId]
    ON [dbo].[ProjectInterfaceSet]([CompanyId] ASC);


GO
CREATE NONCLUSTERED INDEX [EFS_IX_ProjectInterfaceSet_f34cfd03268349979bd2722197af6e70]
    ON [dbo].[ProjectInterfaceSet]([UserName] ASC);


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'公司ID(该接口数据所属公司)', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProjectInterfaceSet', @level2type = N'COLUMN', @level2name = N'CompanyId';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'接口人部门ID', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProjectInterfaceSet', @level2type = N'COLUMN', @level2name = N'DepartmentId';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'接口人', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProjectInterfaceSet', @level2type = N'COLUMN', @level2name = N'UserName';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'接口人所属公司ID', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ProjectInterfaceSet', @level2type = N'COLUMN', @level2name = N'ExCompanyId';

